import request from "@/utils/request";
import { markRaw } from "vue";

export * from './article'
export * from './tag'
export * from './categories.js'
export * from './message'


export const getInfo = async () => {
  return await request
      .get("/info");
}

export const getComment = async (id,params) => {
  return await request.get("/comment/"+id, { params })
}

export const sendComments = async (params) => {
  return await request.post("/comment/", params,{
    headers:{
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export const record = async (id)=>{
    return await request.get("/behavior/add",{
      params:{
        id
      }
    })
}